<?php
/**
 * FastApp.
 * 9/29/24
 * @Author deepsea159
 * @Contact telegram:deepsea159
 */

declare(strict_types=1);

use Hyperf\Database\Seeders\Seeder;
use Hyperf\DbConnection\Db;

class Menu extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        foreach ($this->getData() as $sql) {
            try {
                Db::connection('default')->insert($sql);
            } catch (\Throwable) {
            }
        }
    }

    public function getData(): array
    {
        return [
            "INSERT INTO system_menu (id, parent_id, `level`, name, code, icon, route, component, redirect, is_hidden, `type`, status, sort, created_by, updated_by, created_at, updated_at, deleted_at, remark) VALUES(4908, 0, '0', '交易所管理', 'exchange', 'IconDice', NULL, NULL, NULL, 2, 'M', 1, 1, 1, 1, '2024-08-26 05:34:12', '2024-08-26 05:34:12', NULL, NULL);",
            "INSERT INTO system_menu (id, parent_id, `level`, name, code, icon, route, component, redirect, is_hidden, `type`, status, sort, created_by, updated_by, created_at, updated_at, deleted_at, remark) VALUES(4909, 4908, '0,4908', '交易对本位', 'exchange:pair', 'icon-home', 'exchange/pair', 'exchange/pair/index', NULL, 2, 'M', 1, 0, 1, 1, '2024-08-26 13:36:44', '2024-08-26 05:53:59', NULL, NULL);",
            "INSERT INTO system_menu (id, parent_id, `level`, name, code, icon, route, component, redirect, is_hidden, `type`, status, sort, created_by, updated_by, created_at, updated_at, deleted_at, remark) VALUES(4910, 4909, '0,4908,4909', '交易对列表', 'exchange:pair:index', NULL, NULL, NULL, NULL, 2, 'B', 1, 0, 1, 1, '2024-08-26 13:36:44', '2024-08-26 05:53:45', NULL, NULL);",
            "INSERT INTO system_menu (id, parent_id, `level`, name, code, icon, route, component, redirect, is_hidden, `type`, status, sort, created_by, updated_by, created_at, updated_at, deleted_at, remark) VALUES(4911, 4909, '0,4908,4909', '交易对保存', 'exchange:pair:save', NULL, NULL, NULL, NULL, 2, 'B', 1, 0, 1, 1, '2024-08-26 13:36:44', '2024-08-26 05:53:45', NULL, NULL);",
            "INSERT INTO system_menu (id, parent_id, `level`, name, code, icon, route, component, redirect, is_hidden, `type`, status, sort, created_by, updated_by, created_at, updated_at, deleted_at, remark) VALUES(4912, 4909, '0,4908,4909', '交易对更新', 'exchange:pair:update', NULL, NULL, NULL, NULL, 2, 'B', 1, 0, 1, 1, '2024-08-26 13:36:44', '2024-08-26 05:53:45', NULL, NULL);",
            "INSERT INTO system_menu (id, parent_id, `level`, name, code, icon, route, component, redirect, is_hidden, `type`, status, sort, created_by, updated_by, created_at, updated_at, deleted_at, remark) VALUES(4913, 4909, '0,4908,4909', '交易对读取', 'exchange:pair:read', NULL, NULL, NULL, NULL, 2, 'B', 1, 0, 1, 1, '2024-08-26 13:36:44', '2024-08-26 05:53:45', NULL, NULL);",
            "INSERT INTO system_menu (id, parent_id, `level`, name, code, icon, route, component, redirect, is_hidden, `type`, status, sort, created_by, updated_by, created_at, updated_at, deleted_at, remark) VALUES(4914, 4909, '0,4908,4909', '交易对删除', 'exchange:pair:delete', NULL, NULL, NULL, NULL, 2, 'B', 1, 0, 1, 1, '2024-08-26 13:36:44', '2024-08-26 05:53:45', NULL, NULL);",
            "INSERT INTO system_menu (id, parent_id, `level`, name, code, icon, route, component, redirect, is_hidden, `type`, status, sort, created_by, updated_by, created_at, updated_at, deleted_at, remark) VALUES(4915, 4908, '0,4908', '交易对列表', 'exchange:pairList', 'icon-home', 'exchange/pairList', 'exchange/pairList/index', NULL, 2, 'M', 1, 0, 1, NULL, '2024-08-26 13:40:10', '2024-08-26 13:40:10', NULL, NULL);",
            "INSERT INTO system_menu (id, parent_id, `level`, name, code, icon, route, component, redirect, is_hidden, `type`, status, sort, created_by, updated_by, created_at, updated_at, deleted_at, remark) VALUES(4916, 4915, '0,4908,4915', '交易对列表列表', 'exchange:pairList:index', NULL, NULL, NULL, NULL, 2, 'B', 1, 0, 1, NULL, '2024-08-26 13:40:10', '2024-08-26 13:40:10', NULL, NULL);",
            "INSERT INTO system_menu (id, parent_id, `level`, name, code, icon, route, component, redirect, is_hidden, `type`, status, sort, created_by, updated_by, created_at, updated_at, deleted_at, remark) VALUES(4917, 4915, '0,4908,4915', '交易对列表保存', 'exchange:pairList:save', NULL, NULL, NULL, NULL, 2, 'B', 1, 0, 1, NULL, '2024-08-26 13:40:10', '2024-08-26 13:40:10', NULL, NULL);",
            "INSERT INTO system_menu (id, parent_id, `level`, name, code, icon, route, component, redirect, is_hidden, `type`, status, sort, created_by, updated_by, created_at, updated_at, deleted_at, remark) VALUES(4918, 4915, '0,4908,4915', '交易对列表更新', 'exchange:pairList:update', NULL, NULL, NULL, NULL, 2, 'B', 1, 0, 1, NULL, '2024-08-26 13:40:10', '2024-08-26 13:40:10', NULL, NULL);",
            "INSERT INTO system_menu (id, parent_id, `level`, name, code, icon, route, component, redirect, is_hidden, `type`, status, sort, created_by, updated_by, created_at, updated_at, deleted_at, remark) VALUES(4919, 4915, '0,4908,4915', '交易对列表读取', 'exchange:pairList:read', NULL, NULL, NULL, NULL, 2, 'B', 1, 0, 1, NULL, '2024-08-26 13:40:10', '2024-08-26 13:40:10', NULL, NULL);",
            "INSERT INTO system_menu (id, parent_id, `level`, name, code, icon, route, component, redirect, is_hidden, `type`, status, sort, created_by, updated_by, created_at, updated_at, deleted_at, remark) VALUES(4920, 4915, '0,4908,4915', '交易对列表删除', 'exchange:pairList:delete', NULL, NULL, NULL, NULL, 2, 'B', 1, 0, 1, NULL, '2024-08-26 13:40:10', '2024-08-26 13:40:10', NULL, NULL);",
            "INSERT INTO system_menu (id, parent_id, `level`, name, code, icon, route, component, redirect, is_hidden, `type`, status, sort, created_by, updated_by, created_at, updated_at, deleted_at, remark) VALUES(4932, 4908, '0,4908', '分类列表', 'exchange:category', 'IconMenu', 'exchange/category', 'exchange/category/index', NULL, 2, 'M', 1, 1, 1, 1, '2024-09-29 11:21:11', '2024-09-29 11:21:11', NULL, NULL);",
            "INSERT INTO system_menu (id, parent_id, `level`, name, code, icon, route, component, redirect, is_hidden, `type`, status, sort, created_by, updated_by, created_at, updated_at, deleted_at, remark) VALUES(4933, 4908, '0,4908', '标签列表', 'exchange:tag', 'IconMenu', 'exchange/tag', 'exchange/tag/index', NULL, 2, 'M', 1, 1, 1, 1, '2024-09-29 11:21:11', '2024-09-29 11:21:11', NULL, NULL);",
            "INSERT INTO system_menu (id, parent_id, `level`, name, code, icon, route, component, redirect, is_hidden, `type`, status, sort, created_by, updated_by, created_at, updated_at, deleted_at, remark) VALUES(4934, 4908, '0,4908', '文章列表', 'exchange:article', 'IconMenu', 'exchange/article', 'exchange/article/index', NULL, 2, 'M', 1, 1, 1, 1, '2024-09-29 11:21:11', '2024-09-29 11:21:11', NULL, NULL);",
        ];
    }
}
